﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="AgentQltySvrActEdit.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.SvrMgr.AgentQltySvrActEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>服务担当处理品情单</title>
    <style type="text/css">
        .mytable td.x-table-layout-cell {
            padding:0px 5px;
        }
 
        .mytable td.f-layout-table-cell {
            padding:0px 5px;
        }
        .AlarmTextStyle span {
            color:red!important;font-weight:bolder!important;
        }
    </style>    
    <link rel="stylesheet" href="../res/css/jquery-ui-1.9.3.custom.min.css" />
</head>
<body>
     <form id="form1" runat="server">
    <f:PageManager ID="PageManager1" AutoSizePanelID="AddAgentQltyPanel" runat="server" />
    <f:Panel runat="server" ID="AddAgentQltyPanel"  ShowBorder="false" ShowHeader="false" Layout="Absolute" AutoScroll="true" >
        <Toolbars>
            <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" >
                <Items>
                    
                    <f:ToolbarFill runat="server"></f:ToolbarFill>
                    <f:Label runat="server" ID="ZeroPartNum" CssClass="AlarmTextStyle" CssStyle="AlarmTextStyle" ShowLabel="false"></f:Label>
                    <f:Label runat="server" ID="AlarmText" CssClass="AlarmTextStyle" CssStyle="AlarmTextStyle" ShowLabel="false" Hidden="true"></f:Label>
                    <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server" Text="关闭"></f:Button>
                    <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server"></f:ToolbarSeparator>
                    <f:Button ID="btnEdit"  runat="server" Text="提交修改" ValidateForms="AddAgentQltyForm" Icon="DatabaseSave" ConfirmText="你确定提交修改吗?提交后,系统只是修改品情本身数据,不会走流程." OnClick="btnEdit_Click" ></f:Button>
                    <f:Button ID="btnCancel" ValidateForms="AddAgentQltyForm" Icon="Cancel" runat="server" ConfirmText="你确定此品情拒赔?" Text="品情拒赔" OnClick="btnCancel_Click" ></f:Button>
                    <f:Button ID="btnReject" ValidateForms="AddAgentQltyForm" Icon="ApplicationStop" runat="server" ConfirmText="你确定要驳回此品情的处理吗?提交后将自动提醒相应服务担当及经销商." Text="品情驳回" OnClick="btnReject_Click" ></f:Button>
                    <f:Button ID="btnSaveClose" ValidateForms="AddAgentQltyForm" Icon="SystemSaveClose" runat="server" ConfirmText="你确定同意品情处理吗?提交后,系统将按品情处理流程进行处理." Text="品情确认" OnClick="btnSaveClose_Click" ></f:Button>
                    <f:Button ID="btnAddNew" ValidateForms="AddAgentQltyForm" Icon="SystemNew" runat="server" ConfirmText="你确定提交生成附属品情吗?提交后,系统将按品情处理流程进行处理." Text="生成附属品情" OnClick="btnAddNew_Click" ></f:Button>
                    <f:Button ID="btnMrgAccept" ValidateForms="AddAgentQltyForm" Icon="Accept" runat="server" ConfirmText="你确定同意品情处理吗?" Text="同意品情处理" OnClick="btnMrgAccept_Click" ></f:Button>
                    <f:Button ID="btnMrgReject" ValidateForms="AddAgentQltyForm" Icon="Stop" runat="server" ConfirmText="你确定要驳回此品情的处理吗?提交后将自动提醒相应服务担当." Text="驳回品情处理" OnClick="btnMrgReject_Click"></f:Button> 
                </Items>
             </f:Toolbar>
        </Toolbars>
        <Items>
            <f:Form ID="AddAgentQltyForm" ShowBorder="false" ShowHeader="false" runat="server"  BodyPadding="5px" BoxConfigChildMargin="5px" Title="SimpleForm" >               
                <Items>
                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="5px" Layout="HBox"  BoxConfigPosition="Right" >
                        <Items>
                           
                            <f:TextBox runat="server" ID="ClaimsNumber" Label="品情号" Readonly="true" ></f:TextBox>
                            <f:DatePicker runat="server" ID="IssueDate" Label="发行日期"  Required="true" ShowRedStar="true" Readonly="true"></f:DatePicker>
                        </Items>                    
                    </f:Panel>
                    <f:Panel runat="server" ID="pnlMacInfo"   Title="1.机器资料" BodyPadding="5px" EnableCollapse="true" BoxConfigAlign="Stretch" Layout="HBox"  ShowHeader="true" ShowBorder="true">
                        <Items>
                            <f:Panel runat="server" ID="Panel1" ShowBorder="false" ShowHeader="false" Width="600px" Layout="Table"  TableConfigColumns="2" >
                                <Items>   
                                    <f:TextBox runat="server" ID="AgentName" Label="经销商" Readonly="true"  Required="true" ShowRedStar="true" Text=""></f:TextBox>
                                    <f:TextBox runat="server" ID="SerialNumber" Label="机号"  Required="true" ShowRedStar="true" Text=""  AutoPostBack="true" ></f:TextBox>
                                    <f:TextBox runat="server" ID="CustomerName" Label="用户"  Required="true" ShowRedStar="true" Text=""></f:TextBox>
                                    <f:TextBox runat="server" ID="CustomerMobile" Label="用户手机" Required="true" ShowRedStar="true" Text=""></f:TextBox>
                                    <f:DatePicker runat="server" ID="IntoDate" Label="交机日" ></f:DatePicker>
                                    <f:TextBox runat="server" ID="IntoAddress" Label="地点"   Required="true" ShowRedStar="true" Text=""></f:TextBox>
                                    <f:DatePicker runat="server" ID="FaultDate" Label="故障日"  Required="true" ShowRedStar="true" Readonly="true"></f:DatePicker>
                                    <f:TextBox runat="server" ID="MachineType" Label="机型" Text=""  Required="true" ShowRedStar="true"></f:TextBox>
                                    <f:TextBox runat="server" ID="WorkHour" RegexPattern="NUMBER" Required="true" ShowRedStar="true" Label="工作小时" Text="0"></f:TextBox> 
                                    <f:TextBox runat="server" ID="ReportUser" Label="报告人" Text=""  Required="true" ShowRedStar="true"></f:TextBox>
                                    <f:TextBox runat="server" ID="ReportTel" Label="联系电话" Text=""  Required="true" ShowRedStar="true"></f:TextBox> 
                                    <f:TextBox runat="server" ID="DamagePartsNumber" Label="损坏部品序列号或钢号" Text="" TableColspan="2" ></f:TextBox>                                        
                                </Items>
                            </f:Panel>
                            <f:Panel runat="server" ID="Panel2" ShowBorder="false" ShowHeader="false" Layout="Table" TableConfigColumns="1"  >
                                <Items>
                                    <f:DropDownList ID="MacNature" runat="server" Label="机器性质" Required="true" DataValueField="RoleId" DataTextField="RoleName">
                                        <f:ListItem Value="代理商库存机" Text="代理商库存机" />
                                        <f:ListItem Value="IHISCE样机" Text="IHISCE样机" />
                                        <f:ListItem Value="终端客户机" Text="终端客户机" Selected="true" />
                                    </f:DropDownList>
                                    <f:DropDownList ID="IntoConditi" runat="server" Label="作业内容" Required="true" DataValueField="RoleId" DataTextField="RoleName">
                                        <f:ListItem Value="土方" Text="土方" Selected="true" />
                                        <f:ListItem Value="砂石" Text="砂石" />
                                        <f:ListItem Value="采石" Text="采石" />
                                        <f:ListItem Value="挖砂" Text="挖砂" />
                                        <f:ListItem Value="造园" Text="造园" />
                                        <f:ListItem Value="其他" Text="其他" />
                                    </f:DropDownList>
                                    <f:DropDownList ID="IntoSpecial" runat="server" Label="特别附件及规格" Required="true" DataValueField="RoleId" DataTextField="RoleName">
                                        <f:ListItem Value="破碎管路" Text="破碎管路" />
                                        <f:ListItem Value="破碎专用" Text="破碎专用" />
                                        <f:ListItem Value="加宽铲斗" Text="加宽铲斗" />
                                        <f:ListItem Value="加长臂" Text="加长臂" />
                                        <f:ListItem Value="其他" Text="其他" />
                                        <f:ListItem Value="标准规格" Text="标准规格" Selected="true" />
                                    </f:DropDownList>
                                    <f:CheckBox ID="IsYanPao" runat="server" Label="是否延保" Readonly></f:CheckBox>
                                </Items>
                            </f:Panel>
                            
                        </Items>
                    </f:Panel>
                    <f:Panel runat="server" ID="pnlGZInfo"   Title="2.故障信息" BodyPadding="5px" EnableCollapse="true"  Layout="HBox" TableConfigColumns="2" ShowHeader="true" ShowBorder="true">
                        <Items>
                          <f:Panel runat="server" ID="Panel3" ShowBorder="false" ShowHeader="false" Width="600px"  >
                                <Items>   
                                    <f:Label runat="server" ID="Label1" Text="故障描述(工况、故障部位、故障现象）："></f:Label>
                                    <f:TextArea  runat="server" ID="HEFaultDescription" Height="195px"  Width="515"></f:TextArea>
                                    <f:HiddenField ID="MainFault" runat="server" Text="0"></f:HiddenField>
                                    <f:TriggerBox ID="MainFaultText" EnableEdit="false" EnablePostBack="false"  TriggerIcon="Search" Label="主要故障项目" runat="server"></f:TriggerBox>
                                    <f:Label runat="server" ID="Label2" Text="故障推定原因："></f:Label>
                                    <f:TextArea  runat="server" ID="HEFaultReason" Height="195px"  Width="515"></f:TextArea>
                                    <f:Label runat="server" ID="Label3" Text="结论："></f:Label>
                                    <f:TextArea  runat="server" ID="HEProcessMode" Height="195px"  Width="515"></f:TextArea>
                                </Items>
                        </f:Panel>
                        <f:Panel runat="server" ID="Panel4" ShowBorder="false" ShowHeader="false" Layout="Table" Width="420px" CssClass="mytable" TableConfigColumns="2" >
                            <Items>                                
                                <f:Label runat="server" TableColspan="2" Text="照片或绘图说明:"></f:Label>
                                <f:LinkButton runat="server" Text="删除图片1" ConfirmText="确定要删除此图片吗?" TabIndex="1" OnClick="DelteImage_Click" ></f:LinkButton> 
                                <f:LinkButton runat="server" Text="删除图片2" ConfirmText="确定要删除此图片吗?" TabIndex="2" OnClick="DelteImage_Click" ></f:LinkButton>
                                <f:Image ID="imgRelatively1" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150" ></f:Image>
                                <f:Image ID="imgRelatively2" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server"  ImageWidth="200" ImageHeight="150"></f:Image>                              
                                <f:FileUpload runat="server" ID="filePhoto1"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"  ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="imgRelatively1" ></f:FileUpload>
                                <f:FileUpload runat="server" ID="filePhoto2"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"  ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="imgRelatively2" ></f:FileUpload>
                                <f:TextBox runat="server" Label="" ID="ImgTitle1" Required="true" ShowRedStar="true" Text="图1:铭牌"></f:TextBox>
                                <f:TextBox runat="server" Label="" ID="ImgTitle2" Required="true" ShowRedStar="true" Text="图2:工作小时"></f:TextBox>

                                <f:LinkButton runat="server" Text="删除图片3" ConfirmText="确定要删除此图片吗?" TabIndex="3" OnClick="DelteImage_Click" ></f:LinkButton> 
                                <f:LinkButton runat="server" Text="删除图片4" ConfirmText="确定要删除此图片吗?" TabIndex="4" OnClick="DelteImage_Click" ></f:LinkButton>  
                                <f:Image ID="imgRelatively3" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                <f:Image ID="imgRelatively4" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                <f:FileUpload runat="server" ID="filePhoto3"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"   ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="imgRelatively3"></f:FileUpload>
                                <f:FileUpload runat="server" ID="filePhoto4"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"   ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="imgRelatively4"></f:FileUpload>
                                <f:TextBox runat="server" Label="" ID="ImgTitle3" Required="true" ShowRedStar="true" Text="图3:故障图片"></f:TextBox>
                                <f:TextBox runat="server" Label="" ID="ImgTitle4" Required="true" ShowRedStar="true" Text="图4:故障图片"></f:TextBox>

                                <f:LinkButton runat="server" Text="删除图片5" ConfirmText="确定要删除此图片吗?" TabIndex="5" OnClick="DelteImage_Click" ></f:LinkButton> 
                                <f:LinkButton runat="server" Text="删除图片6" ConfirmText="确定要删除此图片吗?" TabIndex="6" OnClick="DelteImage_Click" ></f:LinkButton>  
                                <f:Image ID="imgRelatively5" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                <f:Image ID="imgRelatively6" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                <f:FileUpload runat="server" ID="filePhoto5"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"   ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="imgRelatively5"></f:FileUpload>
                                <f:FileUpload runat="server" ID="filePhoto6"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"   ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="imgRelatively6"></f:FileUpload>
                                <f:TextBox runat="server" Label="" ID="ImgTitle5" Required="true" ShowRedStar="true" Text="图5:故障图片"></f:TextBox>
                                <f:TextBox runat="server" Label="" ID="ImgTitle6" Required="true" ShowRedStar="true" Text="图6:整机及工况图片"></f:TextBox>

                                <f:Label runat="server" TableColspan="2" Text="其它文件上传(不能超过10M)"></f:Label>
                                <f:HyperLink runat="server" ID="fileOtherDownLoad" ShowLabel="false" Target="_block" Text="原文件下载"  ></f:HyperLink>
                                 <f:LinkButton runat="server" Text="删除此文件(如果有)" ConfirmText="确定要删除此文件吗?" TabIndex="7" OnClick="DelteImage_Click" ></f:LinkButton>
                                <f:FileUpload runat="server" ID="fileOther"   TableColspan="2"  ShowEmptyLabel="false"  ButtonOnly="true" ButtonText="重新上传" ShowLabel="false"   ButtonIcon="Add" AutoPostBack="true" OnFileSelected="fileOther_FileSelected" EmptyText="7"></f:FileUpload>
                               
                            </Items>
                         </f:Panel>
                        </Items>
                    </f:Panel>
                   <f:Panel runat="server" ID="Panel5"   Title="3.部品需求(只有填写配件号的行才会被保存)" BodyPadding="0px" EnableCollapse="true" Layout="Fit" ShowHeader="true" ShowBorder="true" Height="500px" >
                         <Items>
                             <f:Panel runat="server" ShowHeader="false" ShowBorder="false"  Height="300px" AutoScroll="true" Layout="Table" TableConfigColumns="2"  >
                                 <Items>
                                     <f:TextBox runat="server" Label="配件收件人" ID="PartsAcceptName"  Text=""></f:TextBox>
                                     <f:TextBox runat="server" Label="联系电话" ID="PartsAcceptTel"  Text=""></f:TextBox>
                                     <f:TextBox runat="server" Label="配件接收地址" ID="PartsAcceptAddress"  Width="400px" Text=""></f:TextBox>
                                     <f:DropDownList ID="PartsAcceptDate" runat="server" Label="期望到货时间" >
                                        <f:ListItem Value="" Text="请选择..." />
                                        <f:ListItem Value="1-2天" Text="1-2天" />
                                        <f:ListItem Value="2-3天" Text="2-3天"/>
                                        <f:ListItem Value="3天-1周" Text="3天-1周" />
                                        <f:ListItem Value="1周以上" Text="1周以上" />
                                    </f:DropDownList>
                                     <f:LinkButton runat="server" TableColspan="2" EnableAjax="false" Text="找不到配件?点这里刷新.(当配件部已在ERP系统添加新的配件号时,而你在找不到时,可用此功能刷新)" OnClientClick="refreaOITM();"></f:LinkButton>
                                     <f:Grid runat="server" ID="grdAgentQltyParts" ShowHeader="false" TableColspan="2" ShowBorder="false" OnRowDataBound="grdAgentQltyParts_RowDataBound" OnPreRowDataBound="grdAgentQltyParts_PreRowDataBound" >
                                         <Columns>
                                             <f:RowNumberField Width="50px" TextAlign="Center" />
                                             <f:TemplateField HeaderText="配件号" Width="200px" EnableColumnHide="false" EnableHeaderMenu="false" >
                                                 <ItemTemplate>
                                                     <asp:TextBox runat="server"  ID="tbItemCode" CssClass="ItemCode"  Text='<%# Eval("ItemCode") %>'></asp:TextBox>
                                                  </ItemTemplate>
                                             </f:TemplateField>
                                             <f:TemplateField HeaderText="配件名" Width="250px" EnableColumnHide="false" EnableHeaderMenu="false">
                                                 <ItemTemplate>
                                                       <asp:TextBox runat="server"  ID="tbDscription" CssClass="tbDscription"  Text='<%# Eval("Dscription") %>'></asp:TextBox>
                                                 </ItemTemplate>
                                             </f:TemplateField>
                                             <f:TemplateField HeaderText="数量" Width="150px" EnableColumnHide="false" EnableHeaderMenu="false">
                                                 <ItemTemplate>
                                                      <f:TextBox runat="server" Label="" ID="Quantity"  CssClass="Quantity" Text='<%# Eval("Quantity") %>'></f:TextBox>
                                                 </ItemTemplate>
                                             </f:TemplateField>
                                             <f:TemplateField HeaderText="配件需求" Width="150px" EnableColumnHide="false" EnableHeaderMenu="false">
                                                 <ItemTemplate>
                                                    <asp:DropDownList runat="server" ID="ddlPartsDemand">
                                                        <asp:ListItem Value="索赔结算" Text="索赔结算"></asp:ListItem>
                                                        <asp:ListItem Value="索赔发货" Text="索赔发货" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Value="索赔发货(补件)" Text="索赔发货(补件)" ></asp:ListItem> 
                                                        <asp:ListItem Value="索赔加急发货" Text="索赔加急发货" ></asp:ListItem> 
                                                         <asp:ListItem Value="服务支持件" Text="服务支持件" ></asp:ListItem>
                                                        <asp:ListItem Value="备用件发货" Text="备用件发货"></asp:ListItem>
                                                        <asp:ListItem Value="供应商发货" Text="供应商发货"></asp:ListItem>
                                                    </asp:DropDownList>
                                                 </ItemTemplate>
                                             </f:TemplateField>
                                             <f:TemplateField HeaderText="备注" Width="120px" EnableColumnHide="false" EnableHeaderMenu="false">
                                                 <ItemTemplate>
                                                      <f:TextBox runat="server" Label="" ID="Remark"  CssClass="Remark" Text='<%# Eval("Remark") %>'></f:TextBox>
                                                 </ItemTemplate>
                                             </f:TemplateField>
                                             <f:TemplateField HeaderText="需要旧件返回" Width="120px" >
                                                 <ItemTemplate>
                                                    <asp:CheckBox  runat="server" ID="InStock" Enabled="true" Checked='<%# Eval("InStock") %>'  />
                                                 </ItemTemplate>
                                             </f:TemplateField>
                                                 <f:TemplateField HeaderText="是否纳入索赔件自给率统计" Width="120px" >
                                                 <ItemTemplate>
                                                    <asp:CheckBox  runat="server" ID="IsSPZGL" Enabled="true" Checked='<%# Eval("IsSPZGL") %>'  />
                                                 </ItemTemplate>
                                             </f:TemplateField>
                                         </Columns>
                                     </f:Grid>
                                 </Items>
                             </f:Panel>
                            
                         </Items>
                    </f:Panel>

                    <f:Panel runat="server" ID="Panel6"   Title="4.IHISCE服务担当处理" BodyPadding="2px" EnableCollapse="true" Layout="Fit" ShowHeader="true" ShowBorder="true">
                        <Items>
                            <f:Panel runat="server" ID="Panel7" ShowBorder="false" ShowHeader="false" Layout="Table" TableConfigColumns="1"  >
                                <Items> 
                                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="3" Layout="Column"   >
                                        <Items>
                                            <f:CheckBox runat="server" ID="IsMTTR" Label="是否进行MTTR统计" TableColspan="1" LabelWidth="140" Width="180"></f:CheckBox>
                                            <f:CheckBox runat="server" ID="IsYJGL" Label="是否因样机管理不当导致" TableColspan="1" LabelWidth="180" Width="220"></f:CheckBox>
                                            <f:CheckBox runat="server" ID="IsOldConfirm" Label="是否需要对旧件进行确认" TableColspan="1" LabelWidth="180" Width="220"></f:CheckBox>
                                        </Items>
                                    </f:Panel>
                                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2" Layout="Column"  >
                                        <Items>
                                             <f:DropDownList ID="AgentSvrUserId" runat="server" Label="代理服务担当" DataValueField="UserId" DataTextField="RealName" >

                                        </f:DropDownList>
                                        <f:TextBox runat="server" Label="电话" ID="AgentSvrTel" ></f:TextBox>
                                      </Items>
                                    </f:Panel>
                                   
                                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2" Layout="Column"  >
                                        <Items>
                                             <f:RadioButtonList ID="ReportType" AutoPostBack="false" Label="报告类型" LabelWidth="150px" ColumnNumber="4" ColumnWidth="90" runat="server">
                                                <f:RadioItem Text="初报告"  Value="初报告" />
                                                <f:RadioItem Text="续报告(第2次)" Value="续报告(第2次)" />
                                                <f:RadioItem Text="对策后再发" Value="对策后再发" />
                                            </f:RadioButtonList> 
                                            <f:TriggerBox ID="TriggerBox1" EnableEdit="false" EnablePostBack="false" Width="200"   TriggerIcon="Search" Text="此机器历史故障" ShowLabel="false" ShowEmptyLabel="false" runat="server"></f:TriggerBox>
                                        </Items>
                                    </f:Panel>
                                    <f:CheckBox runat="server" ID="IsVisit" Label="是否需要一周回访" LabelWidth="150px" TableColspan="2" Checked="true"></f:CheckBox>
                                    <f:Panel runat="server" TableColspan="2"  ShowBorder="false" Title="IHISCE服务部品情回复、对策与结果：" ShowHeader="true"   Layout="HBox" >
                                        <Items>
                                            <f:TextArea  runat="server" ID="SvrResult" Height="330px" Width="450px" TableColspan="1" ></f:TextArea>
                                            <f:Panel runat="server" ID="Panel8" ShowBorder="false" ShowHeader="false" Layout="Table" Width="420px" CssClass="mytable" TableConfigColumns="2" >
                                                <Items> 

                                                    <f:LinkButton runat="server" Text="删除图片1" ConfirmText="确定要删除此图片吗?" TabIndex="1" OnClick="SvrResultDelteImage_Click" ></f:LinkButton> 
                                                    <f:LinkButton runat="server" Text="删除图片2" ConfirmText="确定要删除此图片吗?" TabIndex="2" OnClick="SvrResultDelteImage_Click" ></f:LinkButton>  
                                                    <f:Image ID="SvrResultImg1" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                                    <f:Image ID="SvrResultImg2" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                                    <f:FileUpload runat="server" ID="SvrResultFileUpload1"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"   ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="SvrResultImg1"></f:FileUpload>
                                                    <f:FileUpload runat="server" ID="SvrResultFileUpload2"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"   ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="SvrResultImg2"></f:FileUpload>
                                                    <f:TextBox runat="server" Label="" ID="SvrResultImgTitle1" Required="true" ShowRedStar="true" Text="图1:相关说明图片"></f:TextBox>
                                                    <f:TextBox runat="server" Label="" ID="SvrResultImgTitle2" Required="true" ShowRedStar="true" Text="图2:相关说明图片"></f:TextBox>

                                                    <f:Label runat="server" TableColspan="2" Text="其它文件上传(不能超过10M)"></f:Label>
                                                    <f:HyperLink runat="server" ID="SvrResultImg3" ShowLabel="false" Target="_block" Text="原文件下载"  ></f:HyperLink>
                                                    <f:LinkButton runat="server" Text="删除此文件(如果有)" ConfirmText="确定要删除此文件吗?" TabIndex="3"  OnClick="SvrResultDelteImage_Click" ></f:LinkButton>
                                                    <f:FileUpload runat="server" ID="SvrResultFileUpload3"   TableColspan="2"  ShowEmptyLabel="false"  ButtonOnly="true" ButtonText="重新上传" ShowLabel="false"   ButtonIcon="Add" AutoPostBack="true" OnFileSelected="SvrResultfileOther_FileSelected" EmptyText="3"></f:FileUpload>
                               
                                                </Items>
                                             </f:Panel>
                                        </Items>
                                    </f:Panel>
                                    <f:Panel runat="server" TableColspan="2"  ShowBorder="false" Title="内部通报与对策" ShowHeader="true"   Layout="Column">
                                        <Items>
                                            <f:GroupPanel runat="server" Title="内容" Width="300" Height="340px">
                                                <Items>
                                                     <f:TextArea  runat="server" ID="SvrScheme" Height="195px"  Width="400"></f:TextArea>
                                                    <f:CheckBox runat="server" ID="IsNeedAppove" Label="是否需要提报到经理及部长" LabelWidth="200" ></f:CheckBox>
                                                </Items>
                                            </f:GroupPanel>                                                                                                      
                                            
                                            <f:GroupPanel runat="server" Title="抄送部门" Width="150" Height="340px">
                                                <Items>
                                                     <f:CheckBoxList ID="CCPartEmail" Label="列表二（一列）" ShowLabel="false" ShowEmptyLabel="false" ColumnNumber="1" runat="server" Height="195px" >
                                                    </f:CheckBoxList>
                                                     <f:Button ID="btnSendCCEmail"  Icon="EmailStart" runat="server" ConfirmText="你确定将此内部通报与对策发送到所选部门吗?" Text="确认审核并抄送" OnClick="btnSendCCEmail_Click" ></f:Button>
                                                </Items>
                                            </f:GroupPanel>

                                            <f:Panel runat="server" ID="Panel9" ShowBorder="true" ShowHeader="false" Title="" Layout="Table" Width="420px" CssClass="mytable" TableConfigColumns="2" >
                                                <Items> 

                                                    <f:LinkButton runat="server" Text="删除图片1" ConfirmText="确定要删除此图片吗?" TabIndex="1" OnClick="SvrSchemeDelteImage_Click" ></f:LinkButton> 
                                                    <f:LinkButton runat="server" Text="删除图片2" ConfirmText="确定要删除此图片吗?" TabIndex="2" OnClick="SvrSchemeDelteImage_Click" ></f:LinkButton>  
                                                    <f:Image ID="SvrSchemeImg1" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                                    <f:Image ID="SvrSchemeImg2" CssClass="photo" ImageUrl="~/res/blank.png" ShowEmptyLabel="false" runat="server" ImageWidth="200" ImageHeight="150"></f:Image>
                                                    <f:FileUpload runat="server" ID="SvrSchemeFileUpload1"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"   ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="SvrSchemeImg1"></f:FileUpload>
                                                    <f:FileUpload runat="server" ID="SvrSchemeFileUpload2"  ShowEmptyLabel="false" ButtonOnly="true" ButtonText="图片上传"   ButtonIcon="ImageAdd" AutoPostBack="true" OnFileSelected="filePhoto1_FileSelected" EmptyText="SvrSchemeImg2"></f:FileUpload>
                                                    <f:TextBox runat="server" Label="" ID="SvrSchemeImgTitle1" Required="true" ShowRedStar="true" Text="图1:相关说明图片"></f:TextBox>
                                                    <f:TextBox runat="server" Label="" ID="SvrSchemeImgTitle2" Required="true" ShowRedStar="true" Text="图2:相关说明图片"></f:TextBox>

                                                    <f:Label runat="server" TableColspan="2" Text="其它文件上传(不能超过10M)"></f:Label>
                                                    <f:HyperLink runat="server" ID="SvrSchemeImg3" ShowLabel="false" Target="_block" Text="原文件下载"  ></f:HyperLink>
                                                    <f:LinkButton runat="server" Text="删除此文件(如果有)" ConfirmText="确定要删除此文件吗?" TabIndex="3"  OnClick="SvrSchemeDelteImage_Click" ></f:LinkButton>
                                                    <f:FileUpload runat="server" ID="SvrSchemeFileUpload3"   TableColspan="2"  ShowEmptyLabel="false"  ButtonOnly="true" ButtonText="重新上传" ShowLabel="false"   ButtonIcon="Add" AutoPostBack="true" OnFileSelected="SvrSchemefileOther_FileSelected" EmptyText="3"></f:FileUpload>
                               
                                                </Items>
                                             </f:Panel>
                                        </Items>
                                    </f:Panel>
                                   

                                    <f:Label runat="server" ID="Label6" Text="配件发送日期及方式：" TableColspan="2"></f:Label>
                                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2" Layout="Fit">
                                        <Items>
                                             <f:RadioButtonList ID="PartsSendDate"  AutoPostBack="false"  Label="发送日:"  runat="server">
                                                <f:RadioItem Text="空"  Value="" />
                                                <f:RadioItem Text="当日"  Value="当日" />
                                                <f:RadioItem Text="次日" Value="次日" />
                                                <f:RadioItem Text="三天内" Value="三天内" />
                                                <f:RadioItem Text="其它" Value="其它" />
                                            </f:RadioButtonList>
                                        </Items>
                                    </f:Panel>
                                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2" Layout="Fit">
                                        <Items>
                                             <f:RadioButtonList ID="PartsSendType"  AutoPostBack="false" Label="发送方式:" ColumnNumber="4" runat="server">
                                                <f:RadioItem Text="空"  Value="" />
                                                <f:RadioItem Text="航空"  Value="航空" />
                                                <f:RadioItem Text="速递<br/>如申通、EMS、顺丰等）" Value="速递（如申通、EMS、顺丰等）" />
                                                <f:RadioItem Text="普通货运<br/>如华宇、中铁等物流）" Value="普通货运（如华宇、中铁等物流）" />
                                                <f:RadioItem Text="随车" Value="随车" />
                                            </f:RadioButtonList> 
                                        </Items>
                                    </f:Panel>
                                    <f:TextBox runat="server" ID="ClaimState" Label="当前品情状态" TableColspan="2"></f:TextBox>                                     
                                    <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2"  >
                                        <Items>                                           
                                            <f:Label runat="server" ID="Label5" Text="驳回记录："></f:Label>
                                            <f:Grid runat="server" ID="gdReject" ShowHeader="false" ShowBorder="false">
                                              <Columns>
                                                   <f:BoundField DataField="RejectDate" EnableColumnHide="false"  Width="100px" HeaderText="驳回时间" DataFormatString="{0:yyyy-MM-dd}" /> 
                                                   <f:BoundField DataField="RejectRealName"  Width="100px" EnableColumnHide="false"   HeaderText="驳回人"  /> 
                                                   <f:BoundField DataField="RejectReason"  ExpandUnusedSpace="true" EnableColumnHide="false"  HeaderText="驳回原因"  /> 
                                                  <f:BoundField DataField="TelRemark"  ExpandUnusedSpace="true" EnableColumnHide="false"  HeaderText="电话沟通"  /> 
                                             </Columns>
                                            </f:Grid>
                                            <f:CheckBox runat="server" ID="NoNormative" Label="品情不符合规范" LabelWidth="150" Width="500px"></f:CheckBox>
                                            <f:TextBox runat="server" ID="RejectReason" Label="驳回原因" LabelWidth="150px" Width="500px"></f:TextBox>
                                            <f:DropDownList runat="server" ID="TelRemark" Label="电话沟通" LabelWidth="150px" Width="500px">
                                                        <f:ListItem Value="" Text="" Selected></f:ListItem>
                                                        <f:ListItem Value="已和经销商服务经理电话沟通" Text="已和经销商服务经理电话沟通"></f:ListItem>
                                                        <f:ListItem Value="已和经销商服务人员电话沟通" Text="已和经销商服务人员电话沟通" Selected="True"></f:ListItem>
                                            </f:DropDownList>
                                        </Items>
                                    </f:Panel>
                                     <f:Panel runat="server" ShowBorder="false" ShowHeader="false" TableColspan="2"  >
                                        <Items>                                           
                                            <f:Label runat="server" ID="Label7" Text="审核记录："></f:Label>
                                            <f:Grid runat="server" ID="gdShenHe" ShowHeader="false" ShowBorder="false">
                                              <Columns>
                                                   <f:BoundField DataField="RejectDate" EnableColumnHide="false"  Width="100px" HeaderText="审核时间" DataFormatString="{0:yyyy-MM-dd}" /> 
                                                   <f:BoundField DataField="RejectRealName"  Width="100px" EnableColumnHide="false"   HeaderText="审核人"  /> 
                                                   <f:BoundField DataField="RejectReason"  ExpandUnusedSpace="true" EnableColumnHide="false"  HeaderText="说明"  /> 
                                             </Columns>
                                            </f:Grid>                                            
                                        </Items>
                                    </f:Panel>
                                </Items>
                            </f:Panel>
                        </Items>
                    </f:Panel>
                </Items>
            </f:Form>
        </Items>
    </f:Panel>
    <f:Window ID="ViewImgWindow" Title="查看图片" Hidden="true" EnableIFrame="true" runat="server"
        EnableMaximize="true" EnableResize="true" Target="Self" IsModal="True" Width="750px"
        Height="500px">
    </f:Window>
    </form>   
    <script src="../res/js/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="../res/js/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
     <script type="text/javascript">
         F.ready(function () {
             $(".ItemCode").each(function () {
                 $(this).autocomplete({
                     source: function (request, response) {
                         $.ajax({
                             url: "/AgentSys/autocomplete.ashx?ajaxmethod=getoitmlist",
                                dataType: "json",
                                data: {
                                    limit: 100,
                                    key: request.term
                                },
                                success: function (data) {
                                    response($.map(data.citylist, function (item) {
                                        return { itemcode: item.itemcode, itemname: item.itemname,onhand:item.onhand }
                                    }));
                                }
                            });
                        },
                     select: function (event, ui) {
                         var $this = $(this);
                         $this.val(ui.item.itemcode);
                         $this.closest("tr").find(".tbDscription").val(ui.item.itemname);
                         $this.css("background-color","");
                         return false;
                     },
                     minLength: 1,
                     autoFocus: true,
                     delay: 100
                 }).data("autocomplete")._renderItem = function (ul, item) {
                     return $("<li>").data("item.autocomplete", item)
                     .append("<a>【" + item.itemcode + "】" + item.itemname +"["+item.onhand+"]</a>")
                     .appendTo(ul);
                 };
             })

             $(".mytable").find("img").each(function () {
                 $(this).click(function () {
                      F("ViewImgWindow").f_show($(this).attr("src"), "查看图片");
                     //if (confirm("确定要删除此图片吗?"))
                     //{
                     //    $(this).attr("src", "/res/blank.png");
                     //    //$("#imgRelatively" + id).val("/res/blank.png");
                     //}
                 });
             })
         });
         function refreaOITM()
         {
             $.ajax({
                 url: "/AgentSys/autocomplete.ashx?ajaxmethod=clearoitmcache",
                 dataType: "json",                
                 success: function () {
                    
                 }
             });         
         }
    </script>
</body>
</html>
